import Vue from "vue";
import VueRouter from "vue-router";
// ?? why
import Home from "../views/Home/Home.vue";
import My from "../views/My/My.vue";
Vue.use(VueRouter);
// 路由表 地址路径 和 组件的对应关系
// routes
// $router
// $route
const routes = [
  {
    path: "/home",
    component: Home,
  },
  {
    path: "/my",
    component: My,
  },
];
const router = new VueRouter({
  // routes: routes,
  routes,
});

export default router;
